package com.evaluationsystem.system.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@Accessors(chain = true)
public class Tree implements Serializable {

        private String id;
        private String title;
        private String parentId;
        private Boolean leaf; //是否叶子节点
        private String level; //层级
        private String nodeId;
        private Boolean spread; //节点展开状态
        private List<Tree> children;

        public Tree(String id,String title,String parentId){
            this.id=id;
            this.title=title;
            this.parentId=parentId;
        }

}
